import java.util.Scanner;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        lap();
    }

    public static void lap() {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入会员本月的消费记录");
        double[] d = new double[5];
        for (int i = 0; i < 5; i++) {
            System.out.print("请输入第" + (i + 1)+ "笔购物记录：");
            d[i] = scanner.nextDouble();
        }

        System.out.println("序号"+ "  " + "金额（元）");
        double sum = 0.0;
        for (int i = 0; i < d.length; i++) {
            System.out.println((i+1)+ "      " + d[i]);
            sum += d[i];
        }
        System.out.println("总金额" +   sum);
    }
}